package com.foreknow.test;

/**
 *  2.1 添加员工
 *  2.2 删除某个员工
 *  2.3 修改员工信息
 *  2.4 根据员工的编号查询某个员工
 *  2.5 查询所有员工
 */
public interface EmployeeDao {
    /**
     * 添加员工
     * @param employee
     * @return
     * insert into employee values(?,?,?,?);
     */
    public boolean save(Employee employee);

    /**
     * delete from employee where eid=?
     * @param eid
     * @return
     */
    public boolean deleteById(int eid);

    /**
     * select * from employee where eid=?
     * @param eid
     * @return
     */
    public Employee getQueryById(int eid);

    /**
     *
     * @param employee
     * @return
     */
    public boolean update(Employee employee);

    /**
     *
     * @return
     */
    public Employee[] getQueryAll();
}
